package com.syzg.base.module.service;

import com.syzg.base.merge.model.Module;
import com.syzg.base.merge.model.TaskTreeNode;
import com.syzg.common.service.BaseService;
import com.syzg.core.exception.ServiceException;
import java.util.List;

import javax.servlet.http.HttpSession;

public interface ModuleService extends BaseService<Module> {
	
    public String getModuleNameByModuleCode(String s) throws ServiceException;

    public List<Module> findModules() throws ServiceException;

    public String getModuleIdByModuleCode(String s) throws ServiceException;
    
    public List<TaskTreeNode> getModuleList(String nodeId, HttpSession session) throws ServiceException;
    
	public List<Module> getParentModule() throws ServiceException;
	
	public void saveModule(Module module) throws ServiceException;
	
	public Module getModule(long id) throws ServiceException;
	
	public TaskTreeNode convertToTree(List<Module> lstModule);
}